package com.zHan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zHan.pojo.Book;

import java.util.List;


public interface IBookService extends IService<Book> {

    boolean delete(Integer id);
    boolean update(Book book);
    List<Book> getAll();
    IPage<Book> getPage(int currentPage, int pageSize);

    IPage<Book> getPage(int currentPage, int pageSize, Book book);
}
